GBML manual / Events

step_end

Runs every unpaused frame, after movement, the room-edge/view checks and the collision step (S2.10 step 8).

Syntax

step_end: fires every unpaused frame, after movement

Description

Runs every unpaused frame, after movement, after the beyond-room/room-edge/view checks, and after collisions are resolved - the last chance to react to where this frame's movement actually left this instance before drawing happens. See The order of a frame for exactly where this sits.

Example

xprev = x;
yprev = y;

Records this frame's final position for the next frame's own Step Begin to compare against.

See also: step_beginstepThe order of a frameEvents